const express = require("express"); //导入express
const router = express.Router(); //创建路由对象
const SpaceController = require("@/controller/SpaceController");
//查询文件空间列表
router.get("/getspacelist", SpaceController.getSpaceList);
//新增文件空间
router.post("/addfilespace", SpaceController.addSpace);
//更新文件空间信息
router.post("/updatespace", SpaceController.updateSpace);
//删除文件空间
router.delete("/delspace",SpaceController.deleteSpace)
module.exports = router; //导出路由对象
